package testPage;

import common.User;
import org.junit.jupiter.api.Test;
import page.LoginPage;


class LoginPageTest {

    LoginPage loginPage = new LoginPage();
    @Test
    void openLoginPage() throws InterruptedException {
        loginPage.openLoginPage();
    }

    @Test
    void goToRegisterPage() throws InterruptedException {
        loginPage.goToRegisterPage();
        loginPage.close();
    }

    @Test
    void login() throws InterruptedException {
        User user = new User("testUser","h123");
        loginPage.login(user);
        User user1 = new User("333","123");
        loginPage.login(user1);
        loginPage.close();
    }
}